<template>
  <el-dialog :visible.sync="visible" v-dialogDrag title="人员" class="tl-dialog" width="800px" top="52px" :append-to-body="true" :modal-append-to-body="true">
    <div style="padding-bottom:10px">
      <!-- 查询界面 -->
      <tl-list-search ref="search" :query-param="queryParam" @search="doQuery" :isDisplayDefaultSearch="false">
        <template slot="search">
          <el-form-item label="人员工号" prop="code">
            <el-input v-model="queryParam.qry_code" placeholder=""></el-input>
          </el-form-item>
          <el-form-item label="人员姓名">
            <el-input v-model="queryParam.qry_name" placeholder=""></el-input>
          </el-form-item>
        </template>
      </tl-list-search>
      <!-- 列表界面 -->
      <div>
        <!--表格渲染-->
        <el-table class="tl-table" ref="mainTable" height="320px" v-loading="loading" :data="datas" row-key="id" border fit :row-class-name="doChangeRowClassName">
          <el-table-column type="index" label="序号" width="55px" header-align="center" align="center"> </el-table-column>
          <el-table-column prop="name" label="姓名" width="150px" align="center" sortable="custom" sort-by="name"></el-table-column>
          <el-table-column prop="code" label="工号" width="150px" align="center" sortable="custom" sort-by="code"></el-table-column>
          <el-table-column prop="mobile" label="手机号" width="150px" align="center" sortable="custom" sort-by="mobile"></el-table-column>
          <el-table-column prop="dispdeptid" label="部门" sortable="custom" sort-by="name" :show-overflow-tooltip="true" ></el-table-column>
        </el-table>
        <!-- 列表分页 -->
        <el-row class="pagebar" ref="pager">
          <el-pagination @size-change="doChangeSize" @current-change="doChangeIndex" :current-page="pageInfo.currentPage" :page-sizes="pageInfo.pageSizes" :total="pageInfo.totalCount" layout="total, sizes, prev, pager, next, jumper" background class="tl-table-pagination"> </el-pagination>
        </el-row>
      </div>
    </div>
    <div slot="footer" class="dialog-footer" >
      <el-button type="primary" @click="doCancelEdit">取消</el-button>
    </div>
  </el-dialog>
</template>

<script>
/** mixins */
import { mixin_list } from '@tapui/mixins/mixin_list'
import { validateNull } from '@tapui/utils/validate'
/** 子组件 */
/** 工具类 */
import { queryDataCode } from '@tapui/api/dataCode'
import { getAction, putAction, postAction } from '@tapui/utils/http'
/** VUE配置 */
export default {
  name: 'TlMeetManageRef',
  components: {},
  mixins: [mixin_list],
  data() {
    return {
      description: '参会人员页面',
      // 默认Key字段名
      fieldDefaultKey: 'id',
      // 默认显示字段名
      fieldDefaultValue: 'name',
      // url配置
      url: {
        list: '/base/permissionManage/queryUserListByShareType'
      },
      // 排序参数
      sorterInfo: {
        sidx: 'code',
        sord: 'asc'
      },
      visible: false
    }
  },
  props: {

  },
  methods: {
    doCancelEdit() {
      this.visible = false
    }
  }
}
</script>
